#include "systemcontrol.h"
#include "fuzzyxmlparser.h"
#include "fuzzyxmlwriter.h"
#include "datacontroller.h"

SystemControl::SystemControl():
        m_fuzzy_controller(new FuzzyController(this)),
        m_main_window(new MainWindow(0, 0, this)),
        m_matrix_viewer(new MatrixViewer(0, this)),
        m_fuzzy_editor(new FuzzyEditor(0, this))
{
    m_main_window->init();
}

SystemControl::~SystemControl()
{
    delete m_main_window;
    delete m_matrix_viewer;
    delete m_fuzzy_editor;
    delete m_fuzzy_controller;
}

const QString SystemControl::getOctavePath()
{
    return m_main_window->getOctavePath().simplified();
}

int SystemControl::getOctaveResolution()
{
    return m_main_window->getOctaveResolution();
}
